package Server;

public class CChannel
{

    public int ChannelId;
    public int NumClient;
    public int AppId;
    public int ChannelType;
    public double MinGoldBet;
    public double MaxGoldBet;
    public double MinToPlay;

    public CChannel()
    {
        NumClient = 0;
    }

    public boolean CanClientJoin()
    {
        if (NumClient < CGlobal.Config.MaxClientInRoom)
        {
            return true;
        }

        return false;
    }

    public void ClientJoin()
    {
        NumClient++;
    }

    public void ClientLeft()
    {
        NumClient--;
        if (NumClient < 0)
        {
            NumClient = 0;
        }
    }
}
